package com.zjz.springcloud;

import com.zjz.myrule.zjzRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/05/9:29
 * @Description:
 * @Target:
 */

// Ribbon 和 Eureka整合以后,客户端可用直接调用,不用关心IP地址和端口号
@SpringBootApplication
@EnableEurekaClient // Eureka的客户端
// 在微服务启动的时候就能加载我们自定义的Ribbon类
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = zjzRule.class)
public class DeptConsumer_80 {

    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class);
    }
}
